// 引入mongoose
const mongoose = require("mongoose");
mongoose.connect(
  "mongodb://tangzhenhua:Lovo123456@182.92.214.223:8084/maiwenjie-project",
  {
    // 警告解决方法
    useNewUrlParser: true,
    useUnifiedTopology: true,
    auth: { authSource: "admin" },
  },
  () => {
    require("./model/users.js");
    require("./model/navs.js");
    require("./model/orders.js");
    require("./model/tabs.js");
    require("./model/coupons.js");
    require("./model/carts.js");
    require("./model/admins.js");
  }
);
